package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Role;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IRoleService {
    void saveOrUpdate(Role entity);

    int delete(Long id);

    Role get(Long id);

    List<Role> listAll();

    PageResult query(QueryObject qo);

    boolean validateUsernname(String name, Long id);

    // 通过 员工ID 获取角色 ID
    List<Long> selectByEmployeeId(Long employeeId);

    List<String> getSnByEmployeeId(Long employeeId);
}
